package com.jnxx.basic.enumException;

import lombok.Getter;

@Getter
public enum GlobalExceptionEnum {
    PARAM_NULL_ERROR("1001","参数不能为空"),
    ERROR("1","系统错误，请重试"),
    NAME_EXIST_ERROR("1002","店铺已存在"),
    PHONE_EXIST_ERROR("1003","账号已存在"),
    TEXT_CHECK_ERROR("1004","输入信息违规"),
    IMG_CHECK_ERROR("1005","图片违规"),
    IMG_CODE_ERROR("1006","验证码错误"),
    PHONE_CODE_TIME_ERROR("1007","短信验证频繁，请在稍后再试"),
    PASSWORD_NOT_EQUAL_ERROR("1008","两次密码不相等"),
    CHECK_CODE_NOT_EXIST_ERROR("1009","验证码过期"),
    ACCOUNT_BAN_ERROR("1010","账号异常，请联系管理员处理"),
    NO_POWER_ERROR("1011","你的权限不够哦 "),
    ;
    private String code;
    private String massage;


    GlobalExceptionEnum(String code, String massage){
        this.code = code;
        this.massage = massage;
    }

}
